import request from '@/utils/request'

// 获取用户详细信息
export function shopDetail(data) {
	return request({
		'url': '/api/shop/detail',
		'method': 'get',
		params: data
	})
}


// 获取积分商城商品分类列表
export function productCategorySearchList(data) {
	return request({
		'url': '/api/productCategory/searchList',
		'method': 'get',
		params: data
	})
}

// 获取积分商城商品列表
export function searchCreditProductList(data) {
	return request({
		'url': '/api/product/searchCreditProductList',
		'method': 'get',
		params: data
	})
}

// 商品详情页
export function productGetCreditDetail(data) {
	return request({
		'url': '/api/product/getCreditDetail',
		'method': 'get',
		params: data
	})
}

// 兑换商品
export function creditOrderCreate(data) {
	return request({
		'url': '/api/creditOrder/create',
		'method': 'post',
		data: data
	})
}

// 积分列表
export function searchCreditRecordList(data) {
	return request({
		'url': '/api/member/searchCreditRecordList',
		'method': 'get',
		params: data
	})
}

// 积分列表
export function creditOrderSearchList(data) {
	return request({
		'url': '/api/creditOrder/searchList',
		'method': 'get',
		params: data
	})
}

export function getExchangeInfo(data) {
	return request({
		'url': '/api/creditOrder/getExchangeInfo',
		'method': 'get',
		params: data
	})
}
